package com.qfedu.service.impl;

import com.qfedu.dao.StaffDao;
import com.qfedu.entity.Staff;
import com.qfedu.service.StaffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StaffServiceImpl implements StaffService {

    @Autowired
    private StaffDao staffDao;

    @Override
    public Staff findStaffByNo(String no) {
        return staffDao.findStaffByNo(no);
    }

    @Override
    public int staffAdd(Staff staff) {
        return staffDao.staffAdd(staff);
    }


    @Override
    public List<Staff> findAll() {
        return staffDao.findAll();
    }

    @Override
    public int delete(int id) {
        return staffDao.delete(id);
    }
}
